﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Clien_Masterclien : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Student"] != null)
        {
            tblname.Text = Session["Student"].ToString();
            tbllogout.Text = "Log Out";
        }
        else 
        {
            tblname.Text = null;
            tbllogout.Text = null;
        }
        
    }

    protected void tbllogout_Click(object sender, EventArgs e)
    {
        Session["Student"] = null;
        Response.Redirect("Home.aspx");
    }
}
